package org.example.onedemo;

//1.导包
import java.util.Scanner;

public class In {
    public static void main(String[] args) {
        //2、定义一个Scanner对象
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入：" );
        //3、调用Scanner类的相关方法
//        int a = scanner.nextInt();
//        System.out.println("输入的数据为：" + a);
        String str = scanner.next();
        System.out.println("输入的数据为：" + str);
        short b = scanner.nextShort();
        System.out.println("输入的数据为：" + b);
    }
}
